package com.hyz.reggie.controllerApi;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyz.reggie.pojo.Category;
import com.hyz.reggie.pojo.R;
import com.hyz.reggie.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@Api(description = "瑞吉外卖分类管理API")
public interface CategoryControllerApi {

    @ApiOperation("分页查询所有分类")
    R findAllCategory(Integer page, Integer pageSize);

    @ApiOperation("添加分类API")
    R addCategory(@RequestBody Category category);
}

